package com.gxa.admin.pojo.dto;

import com.gxa.admin.utils.PageInfo;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author lch
 * @date 2024/3/20 15:14
 * @description 会员等级
 **/

@Data
public class VipDto extends PageInfo {

    //会员id
    private Integer vipId;

    //会员名称
    @NotBlank(message = "会员名称不能为空")
    private String vipName;

    //会员描述
    @NotBlank(message = "会员描述不能为空")
    private String vipDesc;

    //vip折扣
    @DecimalMin(value = "0.00",message = "折扣不能小于0")
    @DecimalMax(value = "1.00",message = "折扣不能大于1")
    private BigDecimal vipDisc;

    //创建时间
    private Timestamp created;
}
